package top.lingchen.spring5.service;

import top.lingchen.spring5.dao.UserDao;

/**
 * @Author 凌宸
 * @create 2021-11-28 下午 5:50
 * @Description
 * @Version 1.0
 */
public class UserService {
    // 创建 userDao 类型属性，生成 set 方法
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add(){
        System.out.println("service add ....");
        userDao.update();
    }
}
